<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的权限</title>
</head>
<body>
<div class="main">
<div class="main_title">你当前的位置：我的权限</div>
<table align="center"  cellpadding="1" cellspacing="1" class="tablelist">
	<s:iterator value="hasroles">
		<tr class="listr2">
	        <td width="30%" align="right" class="listr6"><s:property value="detail"/>(<s:property value="name"/>)</td>
	        <td align="left" class="listr5">
	        	<s:if test="canUse == true">可用</s:if>
				<s:else>不可用</s:else>
			</td>
	        <td align="left" class="listr5">
	        	<s:if test="canGrant == true">
					<s:a  href="/user/grantMyRight.action?roleId=%{id}">可分配</s:a>
				</s:if>
				<s:else>不可分配</s:else>
	        </td>
      	</tr>
	</s:iterator>
</table>

</body>
</html>